#!/bin/bash
# 
# GPLv3 see COPYING.GPL

while sleep 1800; do

# you need to change this to your location
TEMP=`curl -s https://meteo.gc.ca/forecast/hourly/sk-40_metric_f.html  | grep header2 | awk -F'>' '{print $2}' | awk -F'<' '{print $1}' | head -n 2 | tail -n 1`

if (( $TEMP > 23 )); then
echo HOT;
notify-send -u normal "HOT";
else
echo ok;
fi;

done;
